<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if (!$user->isCoordinator())
	goToPage();

switch($route->getAction())
{
	case "reports": require_once COORDINATOR.DS."reports".DS.MAIN; break;
	case "content": require_once COORDINATOR.DS."_content".DS.MAIN; break;
	case "messages": require_once COORDINATOR.DS."_messages".DS.MAIN; break;
	case "switch": require_once COORDINATOR.DS."switch.php"; break;
	
	// ajax
	case "getarea": require_once COORDINATOR.DS."getarea.php"; break;
	case "helper": require_once COORDINATOR.DS."helper.php"; break;
	
	default: goToPage("/coordinator/reports/look");
}

?>